/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package demo903;

/**
 *
 * @author Administrator
 */
import demo902.*;
import java.util.*;

public class StringDemo2 {

    public static void main(String[] args) {
        
        String s = "erereee5454.?Erere%^&";
        char ns[]=s.toCharArray();
        //char ns[]={'e','r'};
        int m=0,n=0,k=0;
        for(int i=0;i<ns.length;i++)
        {
            if((ns[i]>='a' && ns[i]<='z') ||(ns[i]>='A' && ns[i]<='Z') )
                m++;
            else if(ns[i]>='0' && ns[i]<='9')
                n++;
            else
                k++;
        }
        System.out.print(m+" "+n+" "+k);

        
        

        

    }
}

